package main

import (
	"fmt"
	"gitee.com/snxamdf/wui/util/w"
	"gitee.com/snxamdf/wui/wdb"
)

func main() {
	wdb.Init(wdb.Setting{})
	testDB := wdb.GetDB("wuiDB")
	testDB.Put("p1-a", "张三")
	testDB.Put("p1-b", "李四")
	testDB.Put("p2-c", "王五")
	testDB.Put("p3-d", "赵六")
	c := testDB.GetByPrefix("p2")
	v := c.Get(0)
	fmt.Println(c.Array(), c.Length(), w.ToMap(v).ToString())
}
